//
//  NMPOSettingHeadView.swift
//  NMPO
//
//  Created by PowerfullClean on 2023/10/31.
//

import UIKit

class NMPOSettingHeadView: UICollectionReusableView {
    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(nmpo_titleView)
        addSubview(nmpo_iconView)
        nmpo_iconView.snp.makeConstraints { make in
            make.size.equalTo(76)
            make.left.equalToSuperview().offset(48)
            make.top.equalToSuperview().offset(72)
        }
        nmpo_titleView.snp.makeConstraints { make in
            make.centerX.equalTo(nmpo_iconView.snp.centerX)
            make.size.equalTo(CGSize(width: 134, height: 24))
            make.top.equalTo(nmpo_iconView.snp.bottom).offset(16)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //MARK: - nmpo lazy
    lazy var nmpo_iconView: UIImageView = {
        let nmpo_iconView = UIImageView(image: UIImage(named: "nmpo_setting_icon"))
        nmpo_iconView.layer.cornerRadius = 12
        nmpo_iconView.layer.masksToBounds = true
        return nmpo_iconView
    }()
    lazy var nmpo_titleView: UIImageView = {
        let nmpo_titleView = UIImageView(image: UIImage(named: "nmpo_launch_title"))
        return nmpo_titleView
    }()
}

